<template>
  <span>{{ customer }}</span>
</template>
<script>
import { getCustomer } from '@/api/customer'

export default {
  data() {
    return { customer: null }
  },
  beforeMount() {
    getCustomer(this.params.value)
      .then(response => {
        this.customer = response.Data.Name
      })
      .catch(error => {
        console.log(error)
        this.customer = '未知错误'
      })
  }
}
</script>